package gongshw.comic.web;

public class HtmlMaker {
	public static String getLoadingHtmlWithJS(){
		String html ="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>"+
				"<html><head><title>img</title><script type='text/javascript'>"+
				"var hint = new Array('', '.', '..', '...'); var timer = 0; function loading() { var text = hint[timer%4];document.getElementById('hint').innerHTML = 'loading'+hint[timer%4];"+
				"timer++;setTimeout( 'loading()' , 500);}"+    
				"</script></head><body><h1 id='hint'>loading...</h1><script type='text/javascript'>loading();</script>"+
				"</body></html>";
		return html;
	}
	public static String getLoadingHtml(){
		String html ="<!DOCTYPE html >"+
				"<html><head><title>img</title></head><body bgcolor='black'><h1 id='hint'><font color='white'>loading...</font></h1>"+
				"</body></html>";
		return html;
	}
}
